R/script - transformations.R

Defines functions treat_center treat_autoScale

treat_center = function(x){

  x = x - mean(x, na.rm=T)

}


treat_autoScale = function(x){

  x = treat_center(x) / sdev(x)

}
Eiriksen/fishytools documentation built on April 4, 2020, 5:08 a.m.